
<body class="body" ng-controller="productListPageCtrl">
<link rel="stylesheet" href="../css/productListPage.css" type="text/css"/>
<div  class="bodyHeader">
    <button  class="public label">Let's Go</button>
    <button  class="public home" ng-click="jumphomePage()">主页</button>
    <button  class="productList">商品列表</button>
    <button  class="public shoppingCart" ng-click="jumpShoppingCartPage()"><img class="img" src="../png/shoppingCart.png" align="center"/>购物车(<a ng-model="cartCount" ng-bind="showCartCount()">{{cartCount}}</a>)
    </button>
</div>
<div class="tableTitle">商品列表</div>
<div class="mainTable">
    <table class="tableList">
        <th>分类</th>
        <th>名称</th>
        <th>单价(元)</th>
        <th>单位</th>
        <th></th>
        <tr ng-repeat="product in productList">
            <td class="tdPadding">{{product.classification}}</td>
            <td class="tdPadding">{{product.itemName }}</td>
            <td class="tdPadding">{{product.price}}</td>
            <td class="tdPadding">{{product.unit}}</td>
            <td><button  ng-click="addButtonEvent(product,1)" class="button">加入购物车</button></td>
        </tr>
    </table>
</div>
</body>